<?php
namespace Goatherd\Content\Engine\Reader;

use Goatherd\Magic\IDuck;

use Goatherd\Content\Engine\Queue\IItem;

/**
 * Provides resource data for IItem.
 *
 * @category ContentEngine
 * @package Goatherd\Content\Engine
 * @subpackage Reader
 */
interface IReader
extends IDuck
{
    /**
     * Reader preparation.
     *
     */
    public function connect();

    /**
     * Reader shut down logic/ clean up.
     *
     */
    public function disconnect();

    /**
     * @param mixed $identifier
     * @return ResourceContainer
     */
    public function get(IItem $item);
}